home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / initrd.lz / initrd / scripts / casper-bottom / 20xconfig < prev    next >
Encoding:
Text File  |  2009-10-28  |  546 b   |  38 lines

  1. #!/bin/sh
  2.  
  3. PREREQ=""
  4.  
  5. . /scripts/casper-functions
  6.  
  7. prereqs()
  8. {
  9.        echo "$PREREQ"
  10. }
  11.  
  12. case $1 in
  13. # get pre-requisites
  14. prereqs)
  15.        prereqs
  16.        exit 0
  17.        ;;
  18. esac
  19.  
  20. if grep -q xforcevesa /proc/cmdline 2>&1 >/dev/null; then
  21.     cat > /root/etc/X11/xorg.conf << EOF
  22. Section "Device"
  23.     Identifier    "Configured Video Device"
  24.     Driver        "vesa"
  25. EndSection
  26.  
  27. Section "Monitor"
  28.     Identifier    "Configured Monitor"
  29. EndSection
  30.  
  31. Section "Screen"
  32.     Identifier    "Default Screen"
  33.     Monitor        "Configured Monitor"
  34.     Device        "Configured Video Device"
  35. EndSection
  36. EOF
  37. fi
  38.